import {request} from "@@/exports";


export const chatterList = (data: any) => request('/chatter/list', {
    method: 'POST',
    data
})
export const chatterDelete = (data: any) => request('/chatter/delete', {
    method: 'POST',
    data
})
export const modelList = (data: any) => request('/models/list', {
    method: 'POST',
    data
})
export const modelDetail = (data: any) => request('/models/detail', {
    method: 'POST',
    data
})
export const updateAccountStatus = (data: any) => request('/models/updateAccountStatus', {
    method: 'POST',
    data
})

export const addModel = (data: any) => request('/models/add', {
    method: 'POST',
    data
})
export const deleteModel = (data: any) => request('/models/delete', {
    method: 'POST',
    data
})
export const updateModelStatus = (data: any) => request('/models/statusChange', {
    method: 'POST',
    data
})

export const updateModelInfo = (data: any) => request('/models/modify', {
    method: 'POST',
    data
})

export async function bindModelsActions(data: any){
    return request('/chatter/bindActions', {
        method: 'POST',
        data
    })
}


export async function updateChatter(data: any){
    return request('/chatter/update', {
        method: 'POST',
        data
    })
}

export async function addChatter(data: any){
    return request('/chatter/add', {
        method: 'POST',
        data
    })
}

export const onlineReport = (data: any) => request('/report/onlineReport', {
    method: 'POST',
    data
})

export const messageReport = (data: any) => request('/report/messageReport', {
    method: 'POST',
    data
})

export const rewardLevel = (data: any) => request('/report/reward/level', {
    method: 'POST',
    data
})


